<template>
  <view class="uni-page">
    <button class="btn" @click="openApi">test</button>
    <u-table>
		<u-tr>
			<u-th>学校</u-th>
			<u-th>班级</u-th>
			<u-th>年龄</u-th>
		</u-tr>
		<u-tr>
			<u-td>浙江大学</u-td>
			<u-td>二年级</u-td>
			<u-td>22</u-td>
		</u-tr>
		<u-tr>
			<u-td>清华大学</u-td>
			<u-td>05班</u-td>
			<u-td>20</u-td>
		</u-tr>
	</u-table>
  </view>
</template>

<script>
import { mapState, mapMutations } from 'vuex'

export default {
  components: {
  },
  data() {
    return {}
  },
  mounted() {
    uni.setStorageSync('menuList', this.list)
  },
  onShareAppMessage() {
    return {
      title: '小程序分享标题',
      path: '/pages/API/API',
    }
  },
  onNavigationBarButtonTap(e) {
    uni.navigateTo({
      url: '/pages/about/about',
    })
  },
  onLoad() {
    // console.log(this.$u.config.v)
  },
  onReady() {},
  onShow() {},
  onHide() {},
  computed: {},
  // #ifdef H5
  watch: {},
  // #endif
  methods: {
    openApi() {
      this.$api.user.login('aaa', 'bbb')
    }
  },
}
</script>

<style lang="scss" scoped>
.uni-page {
  .btn {
    background-color: #ccc;
    width: 200rpx;
  }
}
</style>
